package TransactionImplementation

import (
	"PaySalary/AbstractTransactions"
	"PaySalary/Model"
	"PaySalary/ModelImplementation"
)

type ChangeDirectTransaction struct {
	AbstractTransactions.ChangeMethodTransaction
	itsBank string
	itsAccount string
}

func (dt *ChangeDirectTransaction)NewChangeDirectTransaction(empid int, bank string, account string)  {
	dt.ChangeMethodTransaction.NewChangeMethodTransaction(empid)
	dt.itsBank = bank
	dt.itsAccount = account
}

func (dt *ChangeDirectTransaction)GetMethod() Model.PaymentMethod {
	return ModelImplementation.NewDirectMethod(dt.itsBank,dt.itsAccount)
}